<?php echo View::make('home.common.header'); ?>

<?php echo View::make('home.common.breadcrumb')->with("bc",$bc); ?>

<div class="box-cate">						
    <div class="list-cate">
		<?php if(isset($catList)): foreach($catList as $key => $values):?>
        <dl <?php if (count($catList) === $key+1):?> class="last"<?php endif; ?>>
            <dt><a href="/schedule?category_id=<?php echo $values[0];?>"><?php echo $values[1];?></a>：</dt>
            <dd>
			<?php foreach($values[2] as $k=> $value):?>
                <a href="/schedule?category_id=<?php echo $value['id']?>"><?php echo $value['name']?></a>
			<?php endforeach;?>
            </dd>
        </dl>
		<?php endforeach; endif;?>

    </div> 

    <div class="tab-s1">
        <span>排序：</span>
        <div class="btn-group">
            <a href="/course?listType=1&amp;type=12" class="btn-tab first active" id="hotCourse">热门</a>
            <a href="/course?listType=4&amp;type=12" class="btn-tab" id="newCourse">推荐</a>
            <a href="/course?listType=3&amp;type=12" class="btn-tab" id="">最新</a>
            <a href="/course?listType=2&amp;type=12" class="btn-tab" id="latestCourse">即将</a>
            <a href="/course?listType=5&amp;type=12&amp;priceDesc=" class="btn-tab last">价格<i class="ico-up"></i></a>
        </div>
    </div>
</div>


    <div class="hot-course schedule">
            
        <div class="hot-category">
           <div class="row-fluid">
            <ul class="thumbnails">


			<?php $count = 1;if(isset($video_list)): foreach($video_list->results as $key => $values):?>
              <li class="span3">
                <div class="thumbnail">
					<a href="/course?id=<?php echo $values->id;?>&category_id=<?php echo $values->category_id;?>">
					<img data-src="holder.js/300x200" alt="300x200" style="width: 300px; height: 200px;" src="<?php echo $values->image;?>">
					</a>
                  <div class="caption">
                    <h3><?php echo $values->title;?></h3>
                    <!--<p>Nullam vehicula ut id elit.</p>-->
                    <p><a href="#" class="btn btn-primary">直播中</a> <a href="#" class="btn btn-success">去听课</a></p>
                  </div>
                </div>
              </li>
			<?php if($count%4 == 0): ?>
			</ul>
			</div>
			</div>
        <div class="hot-category">
           <div class="row-fluid">
            <ul class="thumbnails">
			<?php endif;?>
			<?php $count += 1; endforeach; endif;?>
			</ul>
			</div>
			</div>
            
        
        
    </div>


<!--
    <div class="pagination">
      <ul>
        <li class="disabled"><a href="#">Prev</a></li>
        <li class="active"><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#">Next</a></li>
      </ul>
    </div>
	-->
    <div class="pagination">
		<?php echo $video_list->links(); ?>
    </div>

<?php echo View::make("home.common.footer"); ?>
